import request from '@/utils/request'
import { requestPath } from '@/utils/global.js'

export function getListAPI(params) { //消息列表
  return request({
    url: `${requestPath.member}/pm/page`,
    method: 'get',
    params
  })
}

export function deleAPI(id) { // 删除
  return request({
    url: `${requestPath.member}/pm/delete/${id}`,
    method: 'post'
  })
}

export function getDetailsAPI(id) { // 详情页
  return request({
    url: `${requestPath.member}/pm/get/${id}`,
    method: 'get'
  })
}

export function batchDelAPI() { // 清空消息
  return request({
    url: `${requestPath.member}/pm/delete`,
    method: 'post'
  })
}